Levoric Learn LOGO

Levoric Learn




HTML Tutorial

Introduction <table> tag


The <table> part of HTML shows data in a table. It's information presented with rows and columns, where each cell has details inside it.
The <table> tag in HTML makes a table.
An HTML <table> is made up of one <table> thing and can have more than one <tr>, under >, or <td> elements. They make the grouping in a <table>.
The <tr> part tells where a table row ends, the <th> segment makes for header in tables and the <td> bit marks out spaces within them.
An HTML <table> can also use <caption>, <colgroup>, <thead>, <tfoot> and word 'body' parts. These elements help with adding extra information or organizing the data in a table better.

HTML Example

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset ="UTF-8">
<!--This is our webpage it's our very first webpage-->
<title>Levoric | HTML Fundamentle Tutorial</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<!--Write your content here levoriclearn top degree online and program-->
<table>
<caption>Monthly Sales Report</caption>
<thead>
<tr>
<th>Month</th>
<th>Sales</th>
</tr>
</thead>
<tbody>
<tr>
<td>January</td>
<td>$10,000</td>
</tr>
<tr>
<td>February</td>
<td>$12,000</td>
</tr>
</tbody>
</table>
<!--Write your content here levoriclearn top degree online and program-->
</body>
</html>


output


Monthly Sales Report
Month Sales
January $10,000
February $12,000





Support Browser
Element LevoricLearn-education-top-university-degree LevoricLearn-education-top-university-degree LevoricLearn-education-top-university-degree LevoricLearn-education-top-university-degree
<table> Yes Yes Yes Yes Yes